﻿#ifndef MYMAP_H
#define MYMAP_H
#include <QMap>
#include <QQueue>
#include <QSemaphore>
#include <QReadLocker>
#include <QWriteLocker>
#include <QMutex>
#include <QFile>
#include <QMessageBox>
#include <QStandardItemModel>

typedef unsigned   char    		u8_t;
typedef signed     char    		s8_t;
typedef unsigned   short   		u16_t;
typedef signed     short   		s16_t;
typedef unsigned   int    		u32_t;
typedef signed     int    		s32_t;
typedef char                	char_t;
typedef char                	bool_t;
typedef float					float_th;
typedef double					double_t;

typedef unsigned __int64 ULONGLONG;

#pragma pack(1)
typedef struct {
    unsigned int id;
    double x;
    double y;
    double lat;
    double lon;
    int type;
    int lineId;
    float velY;
}TrajDate;
#pragma pack()

#pragma pack(1)
typedef struct {
    QVector<TrajDate>subData;
}TrajDateNum;
#pragma pack()

extern QByteArray fileary[4];
extern QByteArray radarmsgary[2];
extern QQueue<QByteArray>radarmsglist[2];
extern bool m_end[3];
extern QMutex m_sLock;
extern QFile* dataFile[2];
extern QString filepath[2];
//当前模式
extern int m_head;
//当前参数位置及取值
extern int m_paramindex;
extern unsigned short m_paramnum;
extern int m_lineindex;
extern unsigned short m_lineid[12];
extern bool m_refshtable;
extern int setidnum[12];
extern unsigned short setcolnum[108];
//雷达原点
extern double radarlat[2];
extern double radarlon[2];
extern double radarangle[2];
extern double radarzeropointx[2];
extern double radarzeropointxa[2];
extern float params[8];
extern int radarcaltype;
extern int lineid;
extern QVector<TrajDateNum>trajdata;
extern QString xlsfilename[2];
class Mymap
{
public:
    Mymap();

};

#endif // MYMAP_H
